package com.sbp.messsage_consumer_demo.service.ds.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.dap.dao.mybatis.DaoSupportImpl;
import com.sbp.messsage_consumer_demo.service.ds.IDaoService;

public class DaoServiceImpl extends DaoSupportImpl implements IDaoService {
    //@Override
    public <IdType> Integer batchTccStatusConfirm(Class<?> namespaceClass, List<IdType> idList) {
        String statementPostfix = namespaceClass.getName() + ".batchTccStatusConfirm";

        Map<String, List<IdType>> parameter = new HashMap<String, List<IdType>>();
        parameter.put("list", idList);
        return getSqlSession().update(statementPostfix, parameter);
    }

	public <IdType, ResultType> List<ResultType> selectListByIdArray(
			Class<?> namespaceClass, List<IdType> idList) {
		
		String statementPostfix = namespaceClass.getName() + ".selectListByIdArray";
		Map<String, List<IdType>> parameter = new HashMap<String, List<IdType>>();
        parameter.put("list", idList);
        return getSqlSession().selectList(statementPostfix, parameter);
		
	}

}
